const Layout = () => import('@/layout/Index.vue')
const Admin = () => import('@/views/admin/Index.vue')
const Edit = () => import('@/views/admin/Edit.vue')
export default [
  {
    path: '/admin',
    component: Layout,
    name: 'admin',
    meta: {
      title: '管理员列表',
    },
    roles: ['admin'],
    icon: 'admin',
    children: [
      {
        path: '',
        name: 'adminList',
        component: Admin,
        meta: {
          title: '管理员列表',
          roles: ['admin'],
        },
      },
      {
        path: 'edit/:id',
        name: 'adminEdit',
        component: Edit,
        meta: {
          title: '编辑管理员',
          roles: ['admin'],
        },
        hidden: true, // 不在菜单中显示
      },
    ],
  },
]